<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>听你 请把你唱给我听</title>
<meta content="社区音乐, 微博, 微音乐, 分享音乐, 收藏音乐, 歌曲, mp3, 虾米音乐, 酷狗" name="keywords">
<meta content="听你是一个社会化的音乐应用。在这里大家可以发现分享自己喜欢的音乐。" name="description">

<?php html_css('css.css');?>
<?php html_js('jquery.js');?>
<?php html_js('jquery.totop.js');?>
<?php html_js('jquery.scrollto.js');?>

<?php html_jscss('asyncbox/skins/Ext/asyncbox.css');?>
<?php html_js('asyncbox/AsyncBox.v1.4.5.js');?>

<?php html_jscss('colorbox/colorbox.css');?>
<?php html_js('colorbox/jquery.colorbox.js');?>

<?php html_js('jquery.fix.js');?>

<?php html_jscss('jpage/pagination.css');?>
<?php html_js('jpage/jquery.pagination.js');?>

<?php html_jscss('tab/tab.css');?>
<?php html_js('tab/tab.js');?>

<?php html_css('ex.css');?>
<?php html_js('js.js');?>

</head>

<script type="text/javascript">

var timeout         = 500;
var closetimer		= 0;
var ddmenuitem      = 0;

function jsddm_open()
{	jsddm_canceltimer();
	jsddm_close();
    var mid = $(this).attr('mid');
	ddmenuitem = $('#'+mid).css('visibility', 'visible');
}

function jsddm_close()
{	if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}

function jsddm_timer()
{	closetimer = window.setTimeout(jsddm_close, timeout);}

function jsddm_canceltimer()
{	if(closetimer)
	{	window.clearTimeout(closetimer);
		closetimer = null;}}

$(document).ready(function()
{	
	$('.toplink').bind('mouseover', jsddm_open);
	$('.toplink').bind('mouseout',  jsddm_timer);
	
	$('.userlink').bind('mouseover', jsddm_open);
	$('.userlink').bind('mouseout',  jsddm_timer);

	ajaxinit();
	btninit();
	posinit();
	
}
);

document.onclick = jsddm_close;

</script>

<body> 
<a href="#top" id="to-top" style="display: none;">&nbsp;</a>
<div id="loading"></div>
<a id="btn-login" class="wm-ajax" 
	wmtitle="用户登录"
	wmw="500"
	wmh="300"
	href="<?php echo site_url('c=member&m=ajax_login');?>">&nbsp;</a>

<a id="btn-browser-tip" class="wm-ajax" 
	wmtitle="体验提示"
	wmw="460"
	wmh="220"
	href="<?php echo site_url('c=cm&m=browser_tip');?>">&nbsp;</a>

<div id="container">

<div id="header">
	<div class="header-inner">
	<div id="logo">
		<a href="<?php echo site_url();?>"><?php html_img('logo.jpg');?></a>
	</div>
	<div id="nav" class="nav">
		<ul>
			<?php if($is_login):?>
			<li class="<?php echo fd('nav_index');?>"><a href="<?php echo site_url();?>">好友动态</a></li>		
			<li>.</li>
			<li class="<?php echo fd('nav_favo');?>"><a href="<?php echo site_url('c=topic&m=tfavo');?>">我收藏的</a></li>		
			<li>.</li>
			<li class="<?php echo fd('nav_tome');?>"><a href="<?php echo site_url('c=recmd&m=tome');?>">推荐给我的</a></li>		
			<li>.</li>
			<li class="<?php echo fd('nav_meto');?>"><a href="<?php echo site_url('c=recmd&m=meto');?>">我推荐的</a></li>		
			<li>.</li>
			<li class="<?php echo fd('nav_all');?>"><a href="<?php echo site_url('c=topic&m=all');?>">全部最新</a></li>		
			<?php endif;?>
			<div style="clear: both;"></div>
		</ul>
	</div>
	
	<div id="sysmenu" class="sysmenu">

		<div id="syslist" class="syslist fl">
			<ul>
				<?php if($is_login):?>
				<li class="postlink">
					<a class="wm-ajax"
                    	wmtitle="新音乐"
                    	wmw="520"
                    	wmh="420"
						href="<?php echo site_url('c=topic&m=post');?>"><span class="postlink-icon">&nbsp;</span></a>
				</li>
				<li class="userlink" mid="user-link-menu">
					<a href="<?php echo site_url('c=member&m=index&id='.$loginer->id);?>"><span class="userlink-hdl">
						<img src="http://www.gravatar.com/avatar/<?php echo md5($loginer->email);?>?s=30&d=&r=X"/>
					</span></a>
					<div id="user-link-menu" class="userlink-panel" style="visibility: hidden;">
						<ul class="sd1">
							<li><a href="<?php echo site_url('c=user&m=setting_basic');?>">设置</a></li>
							<li><a href="<?php echo site_url('c=user&m=fans');?>">好友</a></li>
							<li><a href="<?php echo site_url('c=user&m=msg');?>">
								私信(<span class="c1"><?php echo $count_no_r;?></span>)
							</a></li>
							<li><a href="<?php echo site_url('c=member&m=loginout');?>">退出</a></li>
						</ul>
					</div>
				</li>
				<?php endif;?>
				<li class="toplink" mid="top-link-menu">
					<a href="#"><span class="toplink-hdl">&nbsp;</span></a>
					<div id="top-link-menu" class="toplink-panel" style="visibility: hidden;">
						<ul class="sd1">
							<li><a href="<?php echo site_url('c=page&m=about_us');?>">关于我们</a></li>
							<li><a href="<?php echo site_url('c=page&m=help_center');?>">帮助中心</a></li>
							<li><a href="<?php echo site_url('c=page&m=contact_us');?>">联系我们</a></li>
							<li><a href="<?php echo site_url('c=page&m=board');?>">留言板</a></li>
						</ul>
					</div>
				</li>
			</ul>
		</div>
		<!-- 
		<div id="topsearch" class="topsearch fl">
			<input class="topsearch-kw" name="kw" type="text"/>
			<a class="topsearch-hdl" href="#">&nbsp;</a>
		</div>
		 -->
		<div style="clear: both;"></div>
	</div>
	</div>
	
</div>

<div class="b1"></div>
<div id="main">
